package com.myschool.server.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "StudentsParentsLink")
public class StudentsParentsLink extends BaseEntity{

	
	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private User student;

	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private User parent;

	public User getStudent() {
		return student;
	}

	public void setStudent(User student) {
		this.student = student;
	}

	public User getParent() {
		return parent;
	}

	public void setParent(User parent) {
		this.parent = parent;
	}

	
	
}
